import request from '@/utils/request'

export default{

  getConditionOpTime(opTimeQuery) {
    return request({
      url: `/h/op-time/getConditionOpTime`,
      method: 'post',
      data: opTimeQuery
    })
  },
  getAllOpTime() {
    return request({
      url: `/h/op-time/getAllOpTime`,
      method: 'get'
    })
  },

  deleteById(id) {
    return request({
      url: `/h/op-time/deleteById/${id}`,
      method: 'delete'
    })
  },
  getById(id) {
    return request({
      url: `/h/op-time/getById/${id}`,
      method: 'get'
    })
  },
  updateById(OpTime) {
    return request({
      url: `/h/op-time/updateById`,
      method: 'post',
      data:OpTime
    })
  },
  save(OpTime) {
    return request({
      url: `/h/op-time/save`,
      method: 'post',
      data:OpTime
    })
  },

}
